/*
 * @Author: shijianxin
 * @Date: 2022-04-22 16:13:08
 * @Description: 基础配置
 */

export interface IResponseError {
  err: string;
  data: null;
}

export interface IResponseData<T> {
  err: "";
  data: T;
}

export interface IResponsePageData<T> {
  err: "";
  total: number;
  data: T[];
}

export interface ISearchCondition {
  page?: number;
  limit?: number;
  key?: string;
}

export enum SwitchType {
  isHot = "isHot",
  isComing = "isComing",
  isClassic = "isClassic",
}
